//
//  PayResultViewController.m
//  SEGWebView
//
//  Created by 山刘 on 2020/3/12.
//

#import "PayResultViewController.h"

@interface PayResultViewController ()
@property (nonatomic, strong)UIButton *paySuccessButton;
@end

@implementation PayResultViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = UIColor.whiteColor;
    self.title = @"支付结果";
    
    _paySuccessButton = [UIButton buttonWithType:UIButtonTypeCustom];
    [_paySuccessButton addTarget:self action:@selector(confirmClick) forControlEvents:UIControlEventTouchUpInside];
    [_paySuccessButton setTitle:@"返回" forState:UIControlStateNormal];
    [_paySuccessButton setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    [_paySuccessButton setBackgroundColor:[UIColor redColor]];
    [_paySuccessButton sizeToFit];
    _paySuccessButton.frame = CGRectMake(15,100, [UIScreen mainScreen].bounds.size.width-30, CGRectGetHeight(_paySuccessButton.bounds));
    _paySuccessButton.layer.masksToBounds = YES;
    _paySuccessButton.layer.cornerRadius = 5;
    [self.view addSubview:_paySuccessButton];
}

-(void)confirmClick{
    [self.navigationController popViewControllerAnimated:YES];
}

@end
